package ${packageName}.controller;

import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ${packageName}.service.IMutiTableService;

@RestController
@CrossOrigin("*")
@RequestMapping("/mutiTable")
public class MutiTableController {
	
	@Autowired
	public IMutiTableService service;
	
	
	<#list tablesQueryMap?keys as key>
	
	/**
	 * ${key}查询
	 * 
	 * @return
	 */
	@RequestMapping("/${key}Select")
	public Map<String, Object> ${key}Select(@RequestBody Map<String, Object> map) {
		return service.${key}Select(map);
	}
	
	/**
	 * ${key}导出excel
	 * 
	 * @return
	 */
	@RequestMapping("/${key}ExportExcel")
	public void ${key}ExportExcel(HttpServletResponse response) {
		service.${key}ExportExcel(response);
	}
	
	</#list>

}
